{include file="$temps.head" title="$webs.title" keywords="$webs.keywords" description="$webs.description" /}
<div class="layout cx-fex bg-fff dingdan-top">
    <a {eq name="$Request.param.f|default='all'" value="all"}class="open"{/eq} href="{:url('tuango',array('f'=>'all'))}">全部</a>
    <a {eq name="$Request.param.f|default=''" value="wf"}class="open"{/eq} href="{:url('tuango',array('f'=>'wf'))}">未付款</a>
    <a {eq name="$Request.param.f|default=''" value="1"}class="open"{/eq} href="{:url('tuango',array('f'=>'1'))}">已付款</a>
    <a {eq name="$Request.param.f|default=''" value="2"}class="open"{/eq} href="{:url('tuango',array('f'=>'2'))}">已发货</a>
    <a {eq name="$Request.param.f|default=''" value="5"}class="open"{/eq} href="{:url('tuango',array('f'=>'5'))}">已收货</a>
    <a {eq name="$Request.param.f|default=''" value="3"}class="open"{/eq} href="{:url('tuango',array('f'=>'3'))}">退款</a>
</div>
<div class="layout cx-fex-c">
    {volist name="orlist" id="cx" empty=""}
    <ul class="xl11 fex-column bg-fff user-dd-ul mt-15">
        <li class="layout a cx-fex t-12 t-gray">
            <span>{$cx.oid}</span>
            {switch name="$cx.playstatus" }
            {case value="1|2|3|5|6"}
            <a href="{:url('Order/get_tuango',array('oid'=>$cx.oid))}">查看详细 <i class="cx-icon cx-icon-fanhui-copy-copy"></i></a>
            {/case}
            {default /}
            {gt name="$thistime-$cx.addtime" value="26400"}
            <span>订单已关闭</span>
            {else /}
            <a href="{:url('Order/get_tuango',array('oid'=>$cx.oid))}">查看详细 <i class="cx-icon cx-icon-fanhui-copy-copy"></i></a>
            {/gt}
            {/switch}
        </li>
        <li class="layout mt-15">
            <a class="layout cx-fex-l user-dd-a mb-15" href="{:url('Article/index',array('aid'=>$cx.aid))}">
                <div class="xl3">
                    <div class="or-tuan-img">
                        <img class="img-responsive" src="{$cx.conf.picurl}" alt="{$cx.title}" >
                    </div>
                </div>
                <div class="xl9 pad-l10 cx-fex fex-column">
                    <h3 class="layout or-title">{$cx.title}</h3>
                    <h6 class="layout t-12 t-gray">
                        {$cx.tnum + 1}/{$cx.conf.rennum}
                    </h6>
                </div>
            </a>
        </li>
        <li class="layout c cx-fex">
            {eq name="$cx.allmoney" value="0"}
            <span class="button button-S bg-yellow">0元团</span>
            {else /}
            <div class="t-gray t-14">
                <i class="cx-icon cx-icon-renminbi1688 t-red"></i>
                <span class="t-red t-16">{:number_format($cx['pricemoney'] / 100,'2')}</span>
            </div>
            {/eq}

            <div class="cx-fex-r">
            {switch name="$cx.playstatus" }
            {case value="1"}
            <a class="button button-S bor-blue" href="{:url('Order/get_cha',array('oid'=>$cx.oid))}">等待发货</a>
            {/case}
            {case value="2"}
            <a class="button button-S bor-gray mr-10 cx-click" data-type="kuaidi" data-kdname="{$cx.kdname|default=''}" data-kdcode="{$cx.kdcode|default=''}">物流查询</a>
            <a class="button button-S bor-red cx-click" data-type="shouhuo" data-oid="{$cx.oid}">确认收货</a>
            {/case}
            {case value="3"}
                <a class="button button-S">已退款</a>
            {/case}
            {case value="5"}
                {lt name="$thistime-$cx.addtime" value="2592000"}
                <a class="button button-S bor-gray mr-10" href="{:url('Order/tuikuan',array('oid'=>$cx.oid))}">申请退款</a>
                {/lt}
                {eq name="$cx.comment" value="0"}
                <a class="button button-S bg-red" href="{:url('Order/get_ping',array('oid'=>$cx.oid))}">评价</a>
                {else /}
                <a class="button button-S bg-red">已评价</a>
                {/eq}
            {/case}
            {case value="6"}
                <a class="button button-S bor-gray" href="{:url('Order/tuikuan',array('oid'=>$cx.oid))}">处理中</a>
            {/case}
            {default /}
                {gt name="$thistime-$cx.addtime" value="26400"}
                <a class="button button-S">订单已关闭</a>
                {else /}
                <a class="button button-S bor-green" href="{:url('Wxpay/index',array('oid'=>$cx.oid))}">去付款</a>
                {/gt}
            {/switch}
            </div>
        </li>
    </ul>
    {/volist}
</div>

<div style="width: 100%;height: 80px;"></div>
{include file="$temps.foot" /}
<div id="kuaidicha" style="display: none;"></div>